package com.builder.improve;

/**
 * @author zhupanlin
 * @version 1.0
 * @description: TODO
 * @date 2024/4/14 10:20
 */
public class Client {

    public static void main(String[] args) {
        
        // 盖普通房子
        CommonHouse commonHouse = new CommonHouse();
        // 准备创建房子的指挥者
        HouseDirector houseDirector = new HouseDirector(commonHouse);
        
        // 完成盖房子
        System.out.println("输出流程");
        House house = houseDirector.constructHouse();

        System.out.println("-------------");
        
        HighBuilding highBuilding = new HighBuilding();
        houseDirector.setHouseBuilder(highBuilding);
        // 完成盖高楼
        System.out.println("输出流程");
        House house1 = houseDirector.constructHouse();
        


    }
    
}
